﻿using MyCode.Project.Infrastructure.Enumeration;
using System;

namespace MyCode.Project.Domain.Businesses.BillKeeping
{
    /// <summary>
    /// 会员积分记账 数据传输对象
    /// </summary>
    public class MemberIntegralBillKeepingDto
    {
        /// <summary>
        /// 会员ID
        /// </summary>
        public Guid MemberId { get; set; }

        /// <summary>
        /// 发生操作方向
        /// </summary>
        public DirectFlag DirectFlag { get; set; }

        /// <summary>
        /// 发生积分
        /// </summary>
        public decimal AccValue { get; set; }

        /// <summary>
        /// 业务单号
        /// </summary>
        public string Sheet { get; set; }

        /// <summary>
        /// 业务ID
        /// </summary>
        public Guid SheetId { get; set; }

        /// <summary>
        /// 业务类型
        /// </summary>
        public ConsumptionSheetType SheetType { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Note { get; set; }

        /// <summary>
        /// 业务发生时间
        /// </summary>
        public DateTime SheetTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 加盟商ID
        /// </summary>
        public Guid? CustomerId { get; set; }
    }

    /// <summary>
    /// 修改会员积
    /// </summary>
    public class MemberIntegralDto
    {
        /// <summary>
        /// 会员营销顾问关系主键ID
        /// </summary>
        public Guid Id { get; set; }       

        /// <summary>
        /// 发生操作方向  1 增加  -1 减少
        /// </summary>
        public int DirectFlag { get; set; }

        /// <summary>
        /// 发生积分
        /// </summary>
        public decimal AccValue { get; set; }

     
      

     

    }
}
